var url = require('url');
var template = require('templateConfig');
var main = require('main');
var form = require('form');
var module= require('module');
 
function Index(){
    _this = this;
    this.main = function(){
        main.event(this,'tap','i-click');  
        this.init();
    }  
    
    //
    this.getContent= function() {
        var data= {
            tType: "success",
            title: "支付成功",
            btnname: "返回",
            link: "",
            detail: "您的订单已成功支付,我们将尽快为您发货<br />订单编号:"+ main.GetQueryString("order_sn")
        }
    	 $(".content").html(module.getModule(data, "success"))
        
    }  

    this.getFooter= function () {        
    	var data= { 
    		number: "12345", 
    		dataList: [{
    			link: "",
    			icon: "",
    			name: "首页"
    		},{
    			link: "",
    			icon: "",
    			name: "购物车"
    		},{
    			link: "",
    			icon: "",
    			name: "个人中心"
    		}] 
    	} 
    	$(".wrap").append(module.getModule(data, "footer")) 
    }
  

    this.init= function(){  
        this.getContent();   
        this.getFooter(); 
        this.getId;    
    }
    return this.main();
};

var index = new Index();